package com.kuaixueit.crm.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.kuaixueit.crm.mapper.CStaffMapper;
import com.kuaixueit.crm.pojo.QueryStaff;
import com.kuaixueit.crm.service.StaffService;
@Service
public class StaffServiceImpl implements StaffService{
  @Autowired
  private CStaffMapper staffMapper;
  public PageInfo selectAll(Integer pageNum, Integer pageRows, QueryStaff query){
    PageHelper.startPage(pageNum, pageRows);
    List<HashMap> list = staffMapper.getQuesr(query);
    PageInfo info = new PageInfo(list);
    return info;
  }
  
}
